local sk__paoxiao = fk.CreateSkill {

  name = "sk__paoxiao",

  tags = { Skill.Compulsory, },

}



sk__paoxiao:addEffect(fk.Damage, {
  name = "sk__paoxiao",
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(sk__paoxiao.name) and data.card and data.card.trueName == "slash"
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:drawCards(1, sk__paoxiao.name)
    if player.dead then return end
    local use = room:askForUseCard(player, "slash", nil)
    if use then
      use.extraUse = true
      room:useCard(use)
    else
      room:askForDiscard(player, 1, 1, true, sk__paoxiao.name, false)
    end
  end,
})

return sk__paoxiao